package com.zlf.builder_schema.meal;

import com.zlf.builder_schema.entity.ChickenBurger;
import com.zlf.builder_schema.entity.Coke;
import com.zlf.builder_schema.entity.Pepsi;
import com.zlf.builder_schema.entity.VegBurger;

/**
 * <p>Project: bee-projects</p>
 * <p>Title: EduCourseNoteBean.java</p>
 * <p>Description:   </p>
 * <p>Copyright: Copyright (c) 2016 </p>
 * <p>Company: 华炜云商科技有限公司 www.hwtech.cc</p>
 *
 * @author Administrator
 * @version 1.0
 * @date 2017/2/9 10:16
 *
 * 套餐创建者(相当于建造者)
 *
 */
public class MealBuilder {

    /**
     * 套餐一
     *
     * @return
     */
    public Meal prepareVegMeal (){
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Coke());
        return meal;
    }

    /**
     * 套餐二
     *
     * @return
     */
    public Meal prepareNonVegMeal (){
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Pepsi());
        return meal;
    }
}